﻿<phone:PhoneApplicationPage 
    x:Class="MiniBrowser.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBox Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,80,0" Name="textBox1" Text="http://www.bing.com" VerticalAlignment="Top" />
            <Button Content="Go" Height="Auto" HorizontalAlignment="Right"  Name="button1" VerticalAlignment="Top" Width="Auto" Click="button1_Click" />
            <phone:WebBrowser HorizontalAlignment="Stretch" Margin="0,84" Name="webBrowser1" VerticalAlignment="Stretch" Height="Auto" Width="Auto" LoadCompleted="myWebBrowser_LoadCompleted" />
            
            <TextBox HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="0,0,120,0" Text="{Binding IP, Mode=TwoWay}" InputScope="Number" />
            <TextBox HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="140" Text="{Binding Port, Mode=TwoWay}" InputScope="Number" />
            
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>